.class public Lcom/instagram/android/d/j/m;
.super Ljava/lang/Object;
.source "BaseApiLoaderCallbacks.java"

# interfaces
.implements Landroid/support/v4/app/ak;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Landroid/support/v4/app/ak",
        "<",
        "Lcom/instagram/android/d/j/j",
        "<TT;>;>;"
    }
.end annotation


# instance fields
.field protected final a:Landroid/content/Context;

.field private final b:Lcom/instagram/android/d/j/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/j/a",
            "<TT;>;"
        }
    .end annotation
.end field

.field private c:Lcom/instagram/android/d/j/c;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/j/c",
            "<TT;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lcom/instagram/android/d/j/a;Landroid/content/Context;Lcom/instagram/android/d/j/c;)V
    .locals 1
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/a",
            "<TT;>;",
            "Landroid/content/Context;",
            "Lcom/instagram/android/d/j/c",
            "<TT;>;)V"
        }
    .end annotation

    .prologue
    .line 25
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 26
    iput-object p1, p0, Lcom/instagram/android/d/j/m;->b:Lcom/instagram/android/d/j/a;

    .line 27
    invoke-virtual {p2}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/d/j/m;->a:Landroid/content/Context;

    .line 28
    iput-object p3, p0, Lcom/instagram/android/d/j/m;->c:Lcom/instagram/android/d/j/c;

    .line 29
    return-void
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 94
    invoke-static {}, Lcom/instagram/android/service/e;->a()Lcom/instagram/android/service/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/service/e;->b()Landroid/support/v4/app/r;

    move-result-object v0

    .line 95
    if-eqz v0, :cond_0

    .line 96
    invoke-static {v0, p0, p1, p2}, Lcom/instagram/android/d/i/a;->a(Landroid/support/v4/app/r;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 98
    :cond_0
    return-void
.end method


# virtual methods
.method public a(ILandroid/os/Bundle;)Landroid/support/v4/a/c;
    .locals 2
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Landroid/os/Bundle;",
            ")",
            "Landroid/support/v4/a/c",
            "<",
            "Lcom/instagram/android/d/j/j",
            "<TT;>;>;"
        }
    .end annotation

    .prologue
    .line 34
    new-instance v0, Lcom/instagram/android/d/j/l;

    iget-object v1, p0, Lcom/instagram/android/d/j/m;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/instagram/android/d/j/l;-><init>(Landroid/content/Context;)V

    return-object v0
.end method

.method public a()Lcom/instagram/android/d/j/a;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/instagram/android/d/j/a",
            "<TT;>;"
        }
    .end annotation

    .prologue
    .line 106
    iget-object v0, p0, Lcom/instagram/android/d/j/m;->b:Lcom/instagram/android/d/j/a;

    return-object v0
.end method

.method public a(Landroid/support/v4/a/c;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/support/v4/a/c",
            "<",
            "Lcom/instagram/android/d/j/j",
            "<TT;>;>;)V"
        }
    .end annotation

    .prologue
    .line 103
    return-void
.end method

.method public a(Landroid/support/v4/a/c;Lcom/instagram/android/d/j/j;)V
    .locals 3
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/support/v4/a/c",
            "<",
            "Lcom/instagram/android/d/j/j",
            "<TT;>;>;",
            "Lcom/instagram/android/d/j/j",
            "<TT;>;)V"
        }
    .end annotation

    .prologue
    .line 40
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->j()Z

    move-result v0

    if-eqz v0, :cond_7

    .line 41
    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Lcom/instagram/android/d/j/j;->a(Z)V

    .line 43
    iget-object v0, p0, Lcom/instagram/android/d/j/m;->b:Lcom/instagram/android/d/j/a;

    invoke-virtual {v0}, Lcom/instagram/android/d/j/a;->b()V

    .line 45
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->k()Ljava/util/Collection;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 46
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->k()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/d/b/d;

    .line 47
    invoke-static {v0}, Lcom/instagram/android/d/c/b;->a(Lcom/instagram/android/d/b/d;)V

    goto :goto_0

    .line 52
    :cond_0
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->a()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_2

    .line 53
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->f()V

    .line 54
    iget-object v0, p0, Lcom/instagram/android/d/j/m;->b:Lcom/instagram/android/d/j/a;

    invoke-virtual {v0, p2}, Lcom/instagram/android/d/j/a;->a(Lcom/instagram/android/d/j/j;)V

    .line 88
    :cond_1
    :goto_1
    return-void

    .line 57
    :cond_2
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->a()Ljava/lang/String;

    move-result-object v0

    const-string v1, "fail"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 58
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->i()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 59
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->i()Ljava/lang/String;

    move-result-object v0

    const-string v1, "login_required"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 60
    invoke-virtual {p0}, Lcom/instagram/android/d/j/m;->b()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/android/login/c/a;->a(Landroid/content/Context;)V

    goto :goto_1

    .line 62
    :cond_3
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->i()Ljava/lang/String;

    move-result-object v0

    const-string v1, "checkpoint_required"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 63
    invoke-virtual {p0}, Lcom/instagram/android/d/j/m;->b()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->m()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/util/j;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    .line 68
    :cond_4
    iget-object v0, p0, Lcom/instagram/android/d/j/m;->c:Lcom/instagram/android/d/j/c;

    invoke-virtual {v0, p2}, Lcom/instagram/android/d/j/c;->a_(Lcom/instagram/android/d/j/j;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 69
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->i()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/instagram/android/d/j/m;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 76
    :cond_5
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->g()Z

    move-result v0

    if-eqz v0, :cond_6

    .line 77
    iget-object v0, p0, Lcom/instagram/android/d/j/m;->b:Lcom/instagram/android/d/j/a;

    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->h()Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/d/j/a;->a(Ljava/lang/Object;)V

    goto :goto_1

    .line 79
    :cond_6
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->f()V

    .line 80
    iget-object v0, p0, Lcom/instagram/android/d/j/m;->b:Lcom/instagram/android/d/j/a;

    invoke-virtual {v0, p2}, Lcom/instagram/android/d/j/a;->a(Lcom/instagram/android/d/j/j;)V

    goto :goto_1

    .line 84
    :cond_7
    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->g()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/instagram/android/d/j/m;->b:Lcom/instagram/android/d/j/a;

    if-eqz v0, :cond_1

    .line 85
    iget-object v0, p0, Lcom/instagram/android/d/j/m;->b:Lcom/instagram/android/d/j/a;

    invoke-virtual {p2}, Lcom/instagram/android/d/j/j;->h()Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/d/j/a;->a(Ljava/lang/Object;)V

    goto :goto_1
.end method

.method public bridge synthetic a(Landroid/support/v4/a/c;Ljava/lang/Object;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 18
    check-cast p2, Lcom/instagram/android/d/j/j;

    invoke-virtual {p0, p1, p2}, Lcom/instagram/android/d/j/m;->a(Landroid/support/v4/a/c;Lcom/instagram/android/d/j/j;)V

    return-void
.end method

.method public b()Landroid/content/Context;
    .locals 1

    .prologue
    .line 113
    iget-object v0, p0, Lcom/instagram/android/d/j/m;->a:Landroid/content/Context;

    return-object v0
.end method
